@import "./mixin/color";
@import "./var";

.gs-select--box {
    position: relative;
    display: flex;
    align-items: center;
    .gs-select--select {
        outline: none;border:0px solid #FFF;
        @each $light in (dark, primary, success, warning, danger, info, round, while) {
            &.gs-select--select--#{$light} {
                @include borderCol($light);
            }
        }
    }
    .gs-select--input {
        position: absolute;
        left: 0px;
        top: 0px;
        box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, 0.05);
        background-color: #fff;
        border: 1px solid #dcdfe6;
        border-radius: 4px;
        color: #363636;
        padding-left: 8px;
        line-height: 200%;
        height:100%;
        width:100%;
        z-index:5;
        word-break: keep-all;
        /* 不换行 */
        white-space: nowrap;
        /* 不换行 */
        overflow: hidden;
        text-overflow: ellipsis;
        @each $light in (dark, primary, success, warning, danger, info, round, while) {
            &.gs-select--input--#{$light} {
                @include borderCol($light);
            }
        }
    }
    .gs-input--i {
        position: absolute;
        right: -20px;
        z-index: 6;
        word-break: keep-all;
        /* 不换行 */
        white-space: nowrap;
        /* 不换行 */
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        &.gs-input--i:hover {
            filter: alpha(Opacity=70);
            opacity: 0.7;
        }
    }
    
    .gs-select--dialog {
        // @include drop(); //添加下拉动画
        position: absolute;
        // top: 0px;
        z-index:1000;
        padding:8px;
        background-color:#FFF;
        left: 0px;
        margin-top: 45px;
        border: 1 solid blue;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        background-color: #ffffff;
        border-radius: 4px;
        width: 100%;
        overflow-y: auto;
        height: auto;
        max-height: 300px;
        
        .gs-select-options {
            font-size: 18px;
            margin: 1px 5px;
            padding: 3px 0px;
            // padding: 8px;
            @each $light in (dark, primary, success, warning, danger, info, round, while) {
                &.gs-select-options--#{$light} {
                    @include fontcol($light);
                }
                &.gs-select-options--#{$light}:hover {
                    // @include fontcol($light);
                    @include bgc($light);
                    @include fontcol(while);
                    // transform: scaleX(1.1) scaleY(1.1);
                }
            }
            @each $light in (dark, primary, success, warning, danger, info, round, while) {
                &.gs-select-options-is--#{$light} {
                    @include bgc($light);
                    @include fontcol(while);
                }
            }
        }
    }
}

//array
.gs-arr--item{
    background-color: #e9e9eb;
    line-height:35px;
    border-radius: 15px;
    margin: 5px 0px;
    padding: 0px 8px;
    word-break: keep-all;
    white-space: nowrap;
    font-size: 12px;
    .icon:hover{
        transform: scaleX(1.8) scaleY(1.8);
        cursor: pointer;
    }
    // &:hover{
    //     font-weight: bold;
    // }
    @each $light in (dark, primary, success, warning, danger, info, round, while) {
        &.gs-arr--item--#{$light} {
            @include bgc($light);
            @include fontcol(while);
        }
    }
 
}
.gs--arr-box{
    display: flex;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    height: 'auto';
    width: 100%;
    .abs{
        // height: 35px;
        line-height: 35px;
    }
    border: 1px solid #e9e9eb;
    @each $light in (dark, primary, success, warning, danger, info, round, while) {
        &.gs--arr-box--#{$light} {
            @include border($light);
        }
    }
}
.disabled{
    background: #363636;
}
// .gs-val--box {
//     display: flex;
//     position: relative;
//     .gs-val--i {
//         position: absolute;
//         right: -20px;
//         z-index: 6;
//     }
// }